package com.snowy.hidden.biz.domain.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * 通用分页请求
 * @author chenl
 * @date 2021-4-16 14:52
 */
@Data
public class PageReq {

    /**
     * 当前页码
     */
    @ApiModelProperty(value = "当前页码")
    @Min(value = 1,message = "页码不能小于1")
    @Max(value = 1000,message = "超过最大页码")
    private int pageIndex;

    /**
     * 分页条数
     */
    @ApiModelProperty(value = "分页条数")
    @Min(value = 1,message = "分页条数不能少于1")
    @Max(value = 500,message = "超过最大分页数")
    private int pageSize;

}
